package com.team7.order.service;

import com.team7.order.entity.Chapter;
import com.team7.order.utils.CommonResult;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author 张煜杰
 * @since 2021-10-22
 */
public interface ChapterService extends IService<Chapter> {

    CommonResult findChapterByCourseId(String courseId);

    CommonResult findChapterById(String id);

    CommonResult insertChapter(Chapter chapter);

    CommonResult deleteChapterWithCourseId(Chapter chapter);

}
